package com.example.androidnote;

import com.example.androidnote.api.IApiDataSourceImpl;
import com.example.androidnote.api.remote.IApiService;
import com.example.androidnote.domain.MainDomain;

public class Injection {

    private static IApiService provideIApiService(){
        return IApiDataSourceImpl.getIApiService();
    }

    private static IApiDataSourceImpl provideIApiDataSourceImpl(){
        return IApiDataSourceImpl.getInstance();
    }

    public static MainDomain mainDomain(){
        return new MainDomain(provideIApiDataSourceImpl());
    }

}
